/* 全局样式 */

/* 重置样式，确保铺满全屏 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body, #app {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

:root {
  /* 主色系 */
  --primary-color: #409EFF;
  --success-color: #67C23A;
  --warning-color: #E6A23C;
  --danger-color: #F56C6C;
  --info-color: #909399;
  
  /* 文字颜色 */
  --text-primary: #303133;
  --text-regular: #606266;
  --text-secondary: #909399;
  --text-placeholder: #C0C4CC;
  
  /* 边框颜色 */
  --border-color: #DCDFE6;
  --border-light: #E4E7ED;
  --border-lighter: #EBEEF5;
  
  /* 背景颜色 */
  --bg-color: #F5F7FA;
  --bg-light: #FFFFFF;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  color: var(--text-primary);
  background-color: var(--bg-color);
  min-height: 100vh;
  width: 100vw;
}

/* 清除默认样式 */
a {
  color: var(--primary-color);
  text-decoration: none;
}

/* 页面容器 */
.page-container {
  padding: 20px;
}

/* 卡片组件样式增强 */
.el-card {
  margin-bottom: 20px;
  border-radius: 4px;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
}

.el-card__header {
  padding: 15px 20px;
  font-weight: 500;
}

/* 常用flex布局 */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 常用间距类 */
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.ml-10 { margin-left: 10px; }
.mr-10 { margin-right: 10px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* 数据展示卡片 */
.data-card {
  height: 100px;
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.data-card .title {
  font-size: 14px;
  color: var(--text-secondary);
}

.data-card .value {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-primary);
}

/* 页面过渡动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
} 